package cn.iocoder.yudao.module.wms.controller.admin.stockserial.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.*;

@Schema(description = "管理后台 - 库存序列号新增/修改 Request VO")
@Data
public class StockSerialSaveReqVO {

    @Schema(description = "序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "6063")
    private Long id;

    @Schema(description = "产品", requiredMode = Schema.RequiredMode.REQUIRED, example = "19131")
    @NotNull(message = "产品不能为空")
    private Long productId;

    @Schema(description = "仓库", requiredMode = Schema.RequiredMode.REQUIRED, example = "22059")
    @NotNull(message = "仓库不能为空")
    private Long warehouseId;

    @Schema(description = "库位", example = "20299")
    private Long positionId;

    @Schema(description = "序列号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "序列号不能为空")
    private String serialNo;

    @Schema(description = "入库单据性质", example = "16281")
    private Long inDocId;

    @Schema(description = "入库单号")
    private String inDocCode;

    @Schema(description = "出库单据性质", example = "1866")
    private Long outDocId;

    @Schema(description = "出库单号")
    private String outDocCode;

    @Schema(description = "入库标识", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "入库标识不能为空")
    private Integer inFlag;

    @Schema(description = "出库标识", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "出库标识不能为空")
    private Integer outFlag;

    @Schema(description = "库存明细表关联", requiredMode = Schema.RequiredMode.REQUIRED, example = "29045")
    @NotNull(message = "库存明细表关联不能为空")
    private Long stockDetailId;

}